package com.mornd.gulimall.apis.order.fallback;

import com.mornd.gulimall.apis.order.IOrderClient;
import com.mornd.gulimall.apis.order.to.OrderPageTo;
import com.mornd.gulimall.apis.order.to.OrderTo;
import com.mornd.gulimall.common.core.base.BaseFallback;
import com.mornd.gulimall.common.core.result.R;
import org.springframework.stereotype.Component;

/**
 * @author: mornd
 * @dateTime: 2023/7/22 - 23:55
 */

@Component
public class IOrderClientFallback extends BaseFallback implements IOrderClient {
    /**
     * 根据订单号查询订单详情
     *
     * @param orderSn
     * @return
     */
    @Override
    public R<OrderTo> getOrderBySn(String orderSn) {
        return error();
    }

    /**
     * 分页查询当前登录用户的订单信息
     *
     * @param orderPageTo
     * @return
     */
    @Override
    public R<OrderPageTo> pageOrderWithItemByUser(OrderPageTo orderPageTo) {
        return error();
    }
}
